<%= stylesheet_link_tag "mine/_index" %>

<script type="text/javascript" charset="utf-8">
    bind_method(document, "keydown", goRoot);

    $(function () {
        var main = root.getWidgetById("main");

        main.on("keydown", function (e) {
            e =e || window.event;
            var keyValue = e.which || e.keyCode;
            switch (keyValue) {
                case 13:
                    window.location.href = e.target.con.dataset.href;
                    break;
            }
        });
    });
</script>

<div id="main" fe-role="Switch">
  <div id="mine-wrapper" fe-role="Switch">

    <% mine_navbar.each_with_index do |item, index| %>
      <div data-href="<%= item[:path] %>" class="w-280 h-500 mine float-left mr-20 <%= "mine-#{index + 1}" %>"
           fe-role="Widget">
        <div class="mine-title"><%= item[:name] %></div>
      </div>
    <% end %>

  </div>
</div>
